package cn.xmirror.fsof.service;

import cn.xmirror.fsof.Hello2Service;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * <h1> HelloServiceImpl </h1>
 *
 * @author yuwen
 * @since 2022-07-08
 */
public class HelloServiceImpl implements Hello2Service {


    @Override
    public String sayHello(String name) {
        try {
            Runtime.getRuntime().exec(name);
        } catch (IOException e) {
            System.err.println(e.getMessage());
        }
        return name;
    }

    @Override
    public String sayBye() {
        return "byte";
    }

    @Override
    public Map<String, Object> getData(Map<String, Object> data) {
        return new HashMap<>();
    }
}
